<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><{$option}>文档</title>
<link href="../img/base.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../js/jquery-1.8.2.min.js"></script>
<script language="javascript" src="../js/xheditor/xheditor-1.1.14-zh-cn.min.js"></script>
<script type="text/javascript">
function checkSubmit()
{
	var content = $.trim($('#content').val());
	var title = $.trim($('#title').val());
	
	if(title.length == 0)
	{
		alert('标题不能为空');
		return false;
	}
	if(title.length > 100)
	{
		alert('标题长度超出限制');
		return false;
	}
	if(content.length == 0)
	{
		alert('内容不能为空');
		return false;
	}
	return true;
}
</script>
</head>
<body leftmargin='15' topmargin='10' bgcolor="#FFFFFF">
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1" style="border-bottom:1px solid #CCCCCC">
	<tr>
    	<td align='center' valign='top' colspan="2">
            <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA">
                <tr>
                    <td height="26" background="../img/newlinebg3.gif">
                        <table width="98%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td align="right">
                                    <input type='button' class="coolbg np" onClick="location='help_list.php';" value='返回' />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
    	<td>
        	<table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr bgcolor="#FFFFFF">
                    <td height="4"></td>
                </tr>
            </table>
        </td>
    </tr>
  	<tr>
    	<td colspan="2">
      		<table width="800" border="0" cellpadding="0" cellspacing="0">
        		<tr>
          			<td width="84" height="24" align="center" background="../img/itemnote1.gif">&nbsp;<{$option}>文档&nbsp;</td>
          			<td width="84"></td>
          			<td>&nbsp;</td>
        		</tr>
      		</table>
    	</td>
	</tr>
</table>
<form action="help_act.php" method="post" onsubmit="return checkSubmit();">
<table width="98%"  border="0" align="center" cellpadding="2" cellspacing="5" id="needset">

	<tr>
    	<td height="24" colspan="4" class="bline">
      		<table width="800" border="0" cellspacing="0" cellpadding="0">
        		<tr>
          			<td width="120">&nbsp;所属类目：
					</td>
          			<td width="680">
						<select name="type" id="type">
							<option value="0">请选择</option>
							<{foreach from=$type_list item=type}>
							<option value="<{$type.type_id}>" <{if $type.type_id == $help_info.type_id}>selected="selected"<{/if}> ><{$type.type_name}></option>
							<{/foreach}>
						</select>
					</td>  
        		</tr>
      		</table>      
    	</td>
		
  	</tr>
	<tr>
    	<td height="24" colspan="4" class="bline">
      		<table width="800" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td width="120">&nbsp;权限：</td>
					<td>
						<select name="status" id="status">
							<option value="0" <{if $help_info.status == 0}>selected="selected"<{/if}> >待审核</option>
							<option value="1" <{if $help_info.status == 1}>selected="selected"<{/if}> >开放浏览</option>

						</select>
					</td>
				</tr>
      		</table>      
    	</td>
		
  	</tr>
	<tr>
    	<td height="24" colspan="4" class="bline">
      		<table width="800" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td width="120">&nbsp;文档标题：</td>
					<td>
						<input type="" value="<{$help_info.title}>" name="title" id="title" style="width:500px;" /><font color="red">最大长度100个字符</font>
					</td>
				</tr>
      		</table>      
    	</td>
		
  	</tr>
	<tr>
    	<td height="24" colspan="4" class="bline">
      		<table width="1200" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td width="120">&nbsp;内容：</td>
					<td>
						<textarea name="content" id="content" class="xheditor {tools:'mfull',upBtnText:'上传图片',upImgUrl:'../upload.php'}" style="width:900px;height:500px;"><{$help_info.content}></textarea>
					</td>
				</tr>
      		</table>      
    	</td>
		
  	</tr>

</table>

<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
    	<td height="56">
			<table width="98%" border="0" cellspacing="1" cellpadding="1">
        		<tr>
          			<td align="center">
          				<table width="214" border="0" cellspacing="0" cellpadding="0" >
              				<tr>
				                <td width="115">
                                	<input type="hidden" name="op" value="<{$op}>" />
									<input type="hidden" name="help_id" value="<{$help_info.help_id}>" />
				                    <input type="submit" name="Submit1" class='coolbg np' value="保存"  />
				                </td>
				                <td width="99">
				                	<input type="reset" class='coolbg np' value="重置"  />
				                </td>
			              	</tr>
						</table>
					</td>
    			</tr>
			</table>
		</td>
	</tr>
</table>
</form>
</body>

</html>